<?php
/**
 * Created by PhpStorm.
 * User: liuchaozhong
 * Date: 2018/8/16
 * Time: 下午5:22
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CapitalLog extends Model
{
    protected $table = 'capital_log';
    public $fillable = ['type_id','type_test_id','member_id','money_cash','bei','from_source','date'];

    //关联用户
    public function g_member()
    {
        return $this->belongsTo(Member::class, 'member_id');
    }

}